package Model;


import java.awt.Dimension;
import java.awt.Paint;


import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.data.jdbc.JDBCCategoryDataset;


import DataLayer.DaoTransactionLineChart;


@SuppressWarnings("serial")
public class TransactionLineChart extends ChartPanel {

    
    public TransactionLineChart(JFreeChart s) {
    	super(s);
    	JDBCCategoryDataset dataset = DaoTransactionLineChart.getInstance().getLineSet();
    	
    	String title = "Transacties";
        String categoryAxisLabel = "Maanden";
        String valueAxisLabel = "\u20ac";
        
        
        
    	setPreferredSize(new Dimension(500, 270));
    	JFreeChart line = ChartFactory.createLineChart3D(title, categoryAxisLabel, valueAxisLabel, dataset);
    	line.setBackgroundPaint(Color(239, 238, 237));
    	setChart(line);
        
    }

	private Paint Color(int i, int j, int k) {
		// TODO Auto-generated method stub
		return null;
	}
 
   

}
